#pragma once
#include <string>

#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#define GLUT_DISABLE_ATEXIT_HACK
#include <GL/glut.h>
#endif

namespace krryn{
namespace view{
	class texture{
	public:
		texture(const std::string &a_Filename);
		virtual GLuint get_id();
		~texture();

		virtual int get_width() const;
		virtual int get_height() const;
		virtual int get_pitch() const;

	private:
		int m_Width, m_Height, m_Pitch;
		void load();
		const std::string m_Filename;
		GLuint m_TextureId;
	};
}
}
